home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource3
/
144_01
/
compress.hlp
< prev
next >
Wrap
Text File
|
1985-08-21
|
1KB
|
27 lines
**********************************************************************
* COMPRESS *
**********************************************************************
* COPYRIGHT 1983 EUGENE H. MALLORY *
**********************************************************************
PROGRAM:
COMPRESS - Compress input by encoding repeated characters.
USAGE:
COMPRESS [<fid] [>>fid]
FUNCTION:
Reads input and compresses the text to the output. Repeated
strings of four or more characters are replaced by ^nC, where
N is represented by A for 1, B for 2, etc. Runs longer than 26
characters are encoded as several ^nC strings.
EXAMPLE:
COMPRESS <FILE >FILET
_____________________________
Standard Input | | Standard Output
TEXT | | COMPRESSED TEXT
------------------->| COMPRESS |----------------------->
| |
| |
|___________________________|